<?php

#> config.inc.php

unset($CONFIG); 
$CONFIG=array(); 

$CONFIG['title'] 	= "My Small Axe Weblog";
$CONFIG['logo']		= "smallaxe_icons/default-logo.png";
$CONFIG['backend']	= "mysql";

# configurable options
$CONFIG['datefrmt']	= "m/d/Y g:i A"; //use php's date() or strftime() format
$CONFIG['lang'] 	= "en"; //default language
$CONFIG['related']	= "topic"; //either tag or topic.  Default is topic. 

# security
$CONFIG['allow_js']	= FALSE; //allow javascript in admin posts?

# database configuration
$CONFIG['tbl_prefix'] = "smallaxe_"; //if you specified a "table prefix" in setup, please enter it here.  

# you should use this, unless your server doesn't support PHP + GD
# it creates an image when someone is posting comments that they must confirm
# this is a MASSIVE spam protection tool, and is HIGHLY recommended
$CONFIG['captcha']	= 1; 

# core configuration
$publicPath 	= "/"; //might also be something like "/blog/" or "/path/to/weblog/"
$svrRoot 		= "/path/to/your/blog/"; //server path w/ trailing slash.  Probably something like "/home/username/public_html/"

# XML FEED CONFIGURATION
# Ideally, RSS and ATOM feeds should be generated into a static file on your site.  
# If you use a static build, use feed.php as your source files and put your public files here
# Common names for static files are index.rss, index.xml, and atom.xml
# If you don't understand the above, or don't use crond or a scheduled task to generate static files, leave the default values
$CONFIG['rss'] 		= "feed.php/rss"; 
$CONFIG['atom'] 	= "feed.php/atom";
$CONFIG['sitedesc']	= "this should probably be a catchy tagline phrase"; //publically displayed on RSS feed
$CONFIG['webmaster']= "noreply@yoursite.com"; //publically displayed on RSS feed!
$CONFIG['admin']	= "real_email@yoursite.com"; //used to send you email, should be REAL address!

//errors
$errors['0']		= "Error!";
$errors['mysql']	= "Unable to query the MySQL database!"; 
$errors['sqlite']	= "Unable to query the SQLite database!";
$errors['pgsql']	= "Unable to query the PostgreSQL database!";
$errors['mssql']	= "Unable to query the SQL Server database!";
$errors['flatfile']	= "Unable to query the database!";
$errors['ipaddress']	= "You must have an IP address to post.  We capture this IP address only to prevent spam."; 

#############################################################################
# THERE SHOULD BE NO NEED TO EDIT ANYTHING BELOW THIS LINE
#############################################################################
if(!$HTTP_HOST) { $HTTP_HOST = $_SERVER['HTTP_HOST']; }
$publicURL 		= $HTTP_HOST.$publicPath; 
$debug_mode		= FALSE;
$app['name']	= "Small Axe"; 
$app['ver'] 	= "0.4a1";
$tmpldir 		= $svrRoot."tmpl/";
$cfile			= $svrRoot."inc/".$CONFIG['backend']."/connect.inc.php";
$ffile 			= $svrRoot."inc/".$CONFIG['backend']."/functions.inc.php";
$afile 			= $svrRoot."inc/".$CONFIG['backend']."/functions_admin.inc.php";
$GLOBALS['q']	= 0;
?>